package com.lframework.xingyun.sc.vo.stock;

import com.lframework.starter.web.core.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class DecomposeProductStockVo implements BaseVo, Serializable {
    /**
     * 仓库id
     */
    @NotBlank(message = "仓库id不能为空")
    @ApiModelProperty("仓库id")
    private String scId;
    /**
     * 商品id
     */
    @NotBlank(message = "商品id不能为空")
    @ApiModelProperty("商品id")
    private String productId;
    /**
     * 单位id
     */
    @NotBlank(message = "单位id不能为空")
    @ApiModelProperty("单位id")
    private String unitId;
    /**
     * 拆分单位id
     */
    @NotBlank(message = "拆分单位id不能为空")
    @ApiModelProperty("拆分单位id")
    private String toUnitId;
    /**
     * 拆分数量
     */
    @NotNull(message = "拆分数量不能为空")
    @Min(value = 1, message = "拆分数量最小是1")
    @ApiModelProperty("拆分数量")
    private Integer decomposeNum;
}
